forum

home / developersection / forums / disabling htmlencode in asp.net and c#

Disabling HTMLencode in ASP.NET and C#

Anonymous User 2736 13-Nov-2014

I am using DataTable to populate data in GridView in ASP.NET I am trying to place a line break in a cell inside the DataGrid View I used

   "data1+<br>+data2"

to place a line break.I am manipulating this data from C# which is being generated dynamically.Because of HTML encoding 
is replaced as

 lt;brgt;

So please tell me how to disable that html encoding if possible for that gridView.


Updated on 14-Nov-2014

I am a content writter !

Can you answer this question?

Answer

1 Answers

Liked By